<template>
  <div class="form-layout">
    <div class="operating-button">
      <a :class="{register, action: reds.isActive} " href="javascript:;">账号登录</a>
      <a :class="{register, action: reds.isActives}" href="javascript:;" ref="myElement" @click="registerser">二维码登录</a>
    </div>
    <div class="form-layout-cells">
      <div class="cell-phone">
      <a class="cell-phone-a" href="javascript:;">手机验证码登录</a>
    </div>
      <div class="form">
        <div class="form-item">
          <div class="input">
            <i class="iconfont icon-zhanghao"></i>
            <input type="text" placeholder="请输入用户名或手机号" />
          </div>
          <!-- 表单验证错误信息提示 -->
          <!-- <div class="error"><i class="iconfont icon-warning" />请输入手机号</div> -->
        </div>
        <div class="form-item">
          <div class="input">
            <i class="iconfont icon-icon-suo"></i>
            <input type="password" placeholder="请输入密码" />
          </div>
        </div>
        <div class="form-item">
          <i class="iconfont icon-follow"></i>
          <i class="iconfont icon-icon-weixuanze"></i>
          <span class="texxt-span">我已同意<a class="form-item-a" href="javascript:;">《隐私条款》</a>和<a class="form-item-a" href="javascript:;">《服务条款》</a></span>
        </div>
        <div class="form-item">
          <button class="form-item-button">登录</button>
        </div>
        <div class="form-item">
          <a class="password-item" href="javascript:;">忘记密码?</a>
          <a class="qqconnect" href="javascript:;"><img src="../../../images/Connect_logo_7.png" alt=""></a>
          <a class="mianfi-item" href="javascript:;">免费注册</a>
        </div>
      </div>
    </div>
      <div class="tab-pane">
        <img src="../../../images/code.b9269250.png" alt="">
      </div>
  </div>
</template>

<script setup lang="ts">

import { ref } from 'vue'
type rac = {
  isActive: boolean
  isActives: boolean
}

let reds:rac =  {
  isActive: true,
  isActives: false
}
const register = true

const registerser = () => {
  reds.isActives = true
}
</script>

<style scoped>
@import url(../font_3959444_909kpv9ajc/iconfont.css);

.form-layout {
  float: right;
  width: 380px;
  height: 404.4px;
  background-color: rgb(255, 255, 255);
  box-shadow: 0 0 25px 0 rgba(3,3,3,.14);
  padding: 20px 40px;
  box-sizing: border-box;
  position: relative;
}
.operating-button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.form-layout-cells {
  /* display: none; */
}
.operating-button::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 28px;
  width: 1px;
  height: 20px;
  background: #ededed;
}
.register {
  font-size: 18px;
    height: 35px;
    line-height: 35px;
}
.registers {
  font-size: 18px;
  height: 35px;
  line-height: 35px;
}
.cell-phone {
  padding-top: 12px;
  float: right;
}
.cell-phone-a {
  color: #17bb9b;
  font-size: 14px;
  position: relative;
  top: -22px;
}
.form {
  width: 100%;
  background-color: #fff;
  margin-top: 24px;
}
.form-item-a {
  color: #0673b1;
}
.texxt-span {
  padding-left: 4px;
}
.form-item-button {
  width: 100%;
  height: 40px;
  background-color: #ccc;
  border: none;
  line-height: 40px;
  color: #fff;
  font-size: 16px;
}
.form-item {
  margin-bottom: 28px;
  font-size: 14px;
  color: #b3b3b3
}
.icon-zhanghao {
  width: 34px;
  height: 35px;
  background-color: #cfcdcd;
  line-height: 35px;
  font-size: 20px;
  position: absolute;
  top: 111px;
  text-align: center;
  color: #fff;
}
.icon-icon-suo {
  width: 34px;
  height: 35px;
  background-color: #cfcdcd;
  line-height: 35px;
  font-size: 20px;
  position: absolute;
  top: 175px;
  text-align: center;
  color: #fff;
}
.icon-icon-weixuanze {
  display: none;
}
input {
  width: 100%;
  height: 36px;
  padding: 0 49px;
  background: #fff;
  line-height: 34px;
  border: 1px solid #ccc;
}

.password-item {
  float: left;
  color: #333;
  font-size: 14px;
}
.mianfi-item {
  float: right;
  color: #333;
  font-size: 14px;
}
.qqconnect {
  margin-left: 50px;
}
.action {
    border-bottom: 2px solid #17bb9b;
  }
  .tab-pane {
    display: block;
    margin: 42px auto;
    text-align: center;
    display: none;
  }
  .cell-phone-a {
    display: inline-block;
    margin-bottom: 0px;
  }
</style>
